/**
 * Created by ADMIN on 2018/3/11.
 */
import React from 'react';
import { Input, Icon } from 'antd';
import styles from './index.less';

const map = {
  UserName: {
    component: Input,
    props: {
      size: 'large',
      prefix: <Icon type="user" className={styles.prefixIcon} />,
      placeholder: '用户名',
      key: '1',
    },
    rules: [{
      required: true, message: '用户名不能为空',
    }],
  },
  Password: {
    component: Input,
    props: {
      size: 'large',
      prefix: <Icon type="lock" className={styles.prefixIcon} />,
      type: 'password',
      placeholder: '密码',
      key: '2',
    },
    rules: [{
      required: true, message: '密码不能为空',
    }],
  },
};

export default map;

